package com.wac.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wac.data.entity.Article;
import com.wac.data.entity.Dynamic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wac.data.mapper.DynamicMapper;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author beta
 * @since 2023-03-16
 */
public interface DynamicService extends IService<Dynamic> {

	boolean addDynamic(Dynamic dynamic, List<MultipartFile> file);

	Map<String, Object> getDynamic(int page);

	Map<String, Object> getDynamicByUserId(int page, String id);

	Map<String, Object> search(String text, int page);

	Dynamic getDynamicById(String id, String userId);

	boolean delete(String id);

}
